package com.fire.chat.entity.po;


import com.fire.chat.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单资源表
 * </p>
 *
 * @author xiejiarong
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel("菜单资源表")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysMenu extends BaseEntity {

private static final long serialVersionUID=1L;

   @ApiModelProperty("菜单名")
    private String name;

    @ApiModelProperty(value = "菜单编码")
    private String menuCode;

    @ApiModelProperty(value = "父节点",example = "-1 表示根节点(文件夹)")
    private Long parentId;

    @ApiModelProperty(value = "节点类型 1:文件夹 2:页面 3:按钮")
    private Integer nodeType;

    @ApiModelProperty(value = "图标地址")
    private String iconUrl;

    @ApiModelProperty(value = "排序号")
    private Integer sort;

    @ApiModelProperty(value = "页面路由地址,当且仅当nodeType为2才需要，否则为空")
    private String linkUrl;

    @ApiModelProperty(value = "节点层次")
    private Integer level;

    @ApiModelProperty(value = "逻辑删除 1：已删除 0：未删除")
    private Integer isDelete;

    @ApiModelProperty(value = "授权接口地址,当且仅当此资源为按钮即nodeType=3时才需要,否则为#")
    private String httpPath;


}
